package com.zemo.base.common.exception;


import com.zemo.base.common.enums.ErrorCodeEnum;

/**
 * 支付业务异常
 */
public class PaymentException extends PredictableException {

    public PaymentException(Throwable e) {
        super(e);
    }

    public PaymentException(String code, String msg) {
        super( msg);
        this.code = code;
    }

    public PaymentException(ErrorCodeEnum codeDef) {
        super(codeDef.getMsg());
        this.code = codeDef.getCode();
    }

    public PaymentException(ErrorCodeEnum codeDef, Throwable e) {
        super(codeDef.getMsg(), e);
        this.code = codeDef.getCode();
    }
}
